﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Demo05172
{
    class Sire
    {
        private string heroName;
        private string heroInfo;
        private int attack;
        private int defense;
        private int speed;
        private string nickName;

        public Sire() { }
        public Sire(string heroName, string heroInf, int attack, int defense, int speed, string nickName)
        {
            this.heroName = heroName;
            this.heroInfo = heroInf;
            this.attack = attack;//攻击
            this.defense = defense;//防御
            this.speed = speed;//速度
            this.nickName = nickName;
        }

        public void User()
        {
            Console.WriteLine("你的昵称：{0}",this.nickName);
            Console.WriteLine("所选英雄名字:{0}",this.heroName);
            Console.WriteLine("角色介绍:{0}", this.heroInfo);
            Console.WriteLine("攻击:{0}", this.attack);
            Console.WriteLine("防御：{0}", this.defense);
            Console.WriteLine("速度：{0}", this.speed);
        }
        public void Sou() 
        {
            Console.WriteLine("角色创建成功！！");
        }
        public string HeroName { get { return this.heroName; } set { this.heroName = value; } }
        public string HeroInfo { get { return this.heroInfo; } set { this.heroInfo = value; } }
        public int Attack { get { return this.attack; } set { this.attack = value; } }
        public int Defense { get { return this.defense; } set { this.defense = value; } }
        public int Speed { get { return this.speed; } set { this.speed = value; } }
        public string NickName { get { return this.nickName; } set { this.nickName = value; } }

    }
}
